#ifndef USERINFOFORM_H
#define USERINFOFORM_H

#include <data/UserInfo.pb.h>
#include <module/basicwindows.h>

using namespace proto;

namespace Ui {
    class UserInfoForm;
}

class UserInfoForm : public BasicWindows {
    Q_OBJECT

public:
    explicit UserInfoForm(QWidget* parent = nullptr);
    ~UserInfoForm();

    void setUserInfo(const data::UserInfo& userInfo);

    void onEditInfoButtonClicked();

protected:

    // 事件过滤器
    bool eventFilter(QObject* obj, QEvent* event) override;
private:
    Ui::UserInfoForm* ui;
};

#endif  // USERINFOFORM_H
